import request from '@/utils/request'

// 列表
export function getConsumptionList(query) {
	return request({
		url: '/bot/consumption/list',
		method: 'get',
		params: query
	})
}

// 新增
export function addConsumption(data) {
	return request({
		url: '/bot/consumption/add',
		method: 'post',
		data: data
	})
}

// 新增
export function updateConsumption(data) {
	return request({
		url: '/bot/consumption/update',
		method: 'post',
		data: data
	})
}

// 删除
export function removeConsumption(data) {
	return request({
		url: '/bot/consumption/remove',
		method: 'post',
		data: data
	})
}